@foreach(['success','danger'] as $value)
    @if(session($value))
<div role="alert" class="alert alert-{{$value}} alert-dismissible">
    <button type="button" data-dismiss="alert" aria-label="Close" class="close"><span aria-hidden="true" class="mdi mdi-close"></span></button>
    <div class="icon"><span class="mdi mdi-check"></span></div>
    <div class="message"><strong>{{session($value)}}</strong> </div>
</div>
    @endif
@endforeach